3.269 \(\int \frac{\sec ^2(e+f x)}{\sqrt{a+b \sec (e+f x)} \sqrt{c+d \sec (e+f x)}} \, dx\)

Optimal. Leaf size=396 \[ \frac{2 \cot (e+f x) (a+b \sec (e+f x)) \sqrt{-\frac{(b c-a d) (1-\sec (e+f x))}{(c+d) (a+b \sec (e+f x))}} \sqrt{\frac{(b c-a d) (\sec (e+f x)+1)}{(c-d) (a+b \sec (e+f x))}} \Pi \left (\frac{b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac{\sqrt{\frac{a+b}{c+d}} \sqrt{c+d \sec (e+f x)}}{\sqrt{a+b \sec (e+f x)}}\right )|\frac{(a-b) (c+d)}{(a+b) (c-d)}\right )}{b d f \sqrt{\frac{a+b}{c+d}}}-\frac{2 a \sqrt{a+b} \cot (e+f x) (c+d \sec (e+f x)) \sqrt{\frac{(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt{-\frac{(b c-a d) (\sec (e+f x)+1)}{(a-b) (c+d \sec (e+f x))}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{c+d} \sqrt{a+b \sec (e+f x)}}{\sqrt{a+b} \sqrt{c+d \sec (e+f x)}}\right ),\frac{(a+b) (c-d)}{(a-b) (c+d)}\right )}{b f \sqrt{c+d} (b c-a d)} \]

[Out]

(2*Cot[e + f*x]*EllipticPi[(b*(c + d))/((a + b)*d), ArcSin[(Sqrt[(a + b)/(c + d)]*Sqrt[c + d*Sec[e + f*x]])/Sq
rt[a + b*Sec[e + f*x]]], ((a - b)*(c + d))/((a + b)*(c - d))]*Sqrt[-(((b*c - a*d)*(1 - Sec[e + f*x]))/((c + d)
*(a + b*Sec[e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sec[e + f*x]))/((c - d)*(a + b*Sec[e + f*x]))]*(a + b*Sec[e +
f*x]))/(b*d*Sqrt[(a + b)/(c + d)]*f) - (2*a*Sqrt[a + b]*Cot[e + f*x]*EllipticF[ArcSin[(Sqrt[c + d]*Sqrt[a + b*
Sec[e + f*x]])/(Sqrt[a + b]*Sqrt[c + d*Sec[e + f*x]])], ((a + b)*(c - d))/((a - b)*(c + d))]*Sqrt[((b*c - a*d)
*(1 - Sec[e + f*x]))/((a + b)*(c + d*Sec[e + f*x]))]*Sqrt[-(((b*c - a*d)*(1 + Sec[e + f*x]))/((a - b)*(c + d*S
ec[e + f*x])))]*(c + d*Sec[e + f*x]))/(b*Sqrt[c + d]*(b*c - a*d)*f)

________________________________________________________________________________________

Rubi [A]  time = 0.61053, antiderivative size = 396, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 37, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.081, Rules used = {3985, 3984, 3982} \[ \frac{2 \cot (e+f x) (a+b \sec (e+f x)) \sqrt{-\frac{(b c-a d) (1-\sec (e+f x))}{(c+d) (a+b \sec (e+f x))}} \sqrt{\frac{(b c-a d) (\sec (e+f x)+1)}{(c-d) (a+b \sec (e+f x))}} \Pi \left (\frac{b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac{\sqrt{\frac{a+b}{c+d}} \sqrt{c+d \sec (e+f x)}}{\sqrt{a+b \sec (e+f x)}}\right )|\frac{(a-b) (c+d)}{(a+b) (c-d)}\right )}{b d f \sqrt{\frac{a+b}{c+d}}}-\frac{2 a \sqrt{a+b} \cot (e+f x) (c+d \sec (e+f x)) \sqrt{\frac{(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt{-\frac{(b c-a d) (\sec (e+f x)+1)}{(a-b) (c+d \sec (e+f x))}} F\left (\sin ^{-1}\left (\frac{\sqrt{c+d} \sqrt{a+b \sec (e+f x)}}{\sqrt{a+b} \sqrt{c+d \sec (e+f x)}}\right )|\frac{(a+b) (c-d)}{(a-b) (c+d)}\right )}{b f \sqrt{c+d} (b c-a d)} \]

Antiderivative was successfully verified.

[In]

Int[Sec[e + f*x]^2/(Sqrt[a + b*Sec[e + f*x]]*Sqrt[c + d*Sec[e + f*x]]),x]

[Out]

(2*Cot[e + f*x]*EllipticPi[(b*(c + d))/((a + b)*d), ArcSin[(Sqrt[(a + b)/(c + d)]*Sqrt[c + d*Sec[e + f*x]])/Sq
rt[a + b*Sec[e + f*x]]], ((a - b)*(c + d))/((a + b)*(c - d))]*Sqrt[-(((b*c - a*d)*(1 - Sec[e + f*x]))/((c + d)
*(a + b*Sec[e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Sec[e + f*x]))/((c - d)*(a + b*Sec[e + f*x]))]*(a + b*Sec[e +
f*x]))/(b*d*Sqrt[(a + b)/(c + d)]*f) - (2*a*Sqrt[a + b]*Cot[e + f*x]*EllipticF[ArcSin[(Sqrt[c + d]*Sqrt[a + b*
Sec[e + f*x]])/(Sqrt[a + b]*Sqrt[c + d*Sec[e + f*x]])], ((a + b)*(c - d))/((a - b)*(c + d))]*Sqrt[((b*c - a*d)
*(1 - Sec[e + f*x]))/((a + b)*(c + d*Sec[e + f*x]))]*Sqrt[-(((b*c - a*d)*(1 + Sec[e + f*x]))/((a - b)*(c + d*S
ec[e + f*x])))]*(c + d*Sec[e + f*x]))/(b*Sqrt[c + d]*(b*c - a*d)*f)

Rule 3985

Int[csc[(e_.) + (f_.)*(x_)]^2/(Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.) +
 (c_)]), x_Symbol] :> -Dist[a/b, Int[Csc[e + f*x]/(Sqrt[a + b*Csc[e + f*x]]*Sqrt[c + d*Csc[e + f*x]]), x], x]
+ Dist[1/b, Int[(Csc[e + f*x]*Sqrt[a + b*Csc[e + f*x]])/Sqrt[c + d*Csc[e + f*x]], x], x] /; FreeQ[{a, b, c, d,
 e, f}, x] && NeQ[b*c - a*d, 0]

Rule 3984

Int[csc[(e_.) + (f_.)*(x_)]/(Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.) + (
c_)]), x_Symbol] :> Simp[(-2*(c + d*Csc[e + f*x])*Sqrt[((b*c - a*d)*(1 - Csc[e + f*x]))/((a + b)*(c + d*Csc[e
+ f*x]))]*Sqrt[-(((b*c - a*d)*(1 + Csc[e + f*x]))/((a - b)*(c + d*Csc[e + f*x])))]*EllipticF[ArcSin[Rt[(c + d)
/(a + b), 2]*(Sqrt[a + b*Csc[e + f*x]]/Sqrt[c + d*Csc[e + f*x]])], ((a + b)*(c - d))/((a - b)*(c + d))])/(f*(b
*c - a*d)*Rt[(c + d)/(a + b), 2]*Cot[e + f*x]), x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ
[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]

Rule 3982

Int[(csc[(e_.) + (f_.)*(x_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)])/Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.) +
(c_)], x_Symbol] :> Simp[(-2*(a + b*Csc[e + f*x])*Sqrt[-(((b*c - a*d)*(1 - Csc[e + f*x]))/((c + d)*(a + b*Csc[
e + f*x])))]*Sqrt[((b*c - a*d)*(1 + Csc[e + f*x]))/((c - d)*(a + b*Csc[e + f*x]))]*EllipticPi[(b*(c + d))/(d*(
a + b)), ArcSin[(Sqrt[(a + b)/(c + d)]*Sqrt[c + d*Csc[e + f*x]])/Sqrt[a + b*Csc[e + f*x]]], ((a - b)*(c + d))/
((a + b)*(c - d))])/(d*f*Sqrt[(a + b)/(c + d)]*Cot[e + f*x]), x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c -
a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]

Rubi steps

\begin{align*} \int \frac{\sec ^2(e+f x)}{\sqrt{a+b \sec (e+f x)} \sqrt{c+d \sec (e+f x)}} \, dx &=\frac{\int \frac{\sec (e+f x) \sqrt{a+b \sec (e+f x)}}{\sqrt{c+d \sec (e+f x)}} \, dx}{b}-\frac{a \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)} \sqrt{c+d \sec (e+f x)}} \, dx}{b}\\ &=\frac{2 \cot (e+f x) \Pi \left (\frac{b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac{\sqrt{\frac{a+b}{c+d}} \sqrt{c+d \sec (e+f x)}}{\sqrt{a+b \sec (e+f x)}}\right )|\frac{(a-b) (c+d)}{(a+b) (c-d)}\right ) \sqrt{-\frac{(b c-a d) (1-\sec (e+f x))}{(c+d) (a+b \sec (e+f x))}} \sqrt{\frac{(b c-a d) (1+\sec (e+f x))}{(c-d) (a+b \sec (e+f x))}} (a+b \sec (e+f x))}{b d \sqrt{\frac{a+b}{c+d}} f}-\frac{2 a \sqrt{a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac{\sqrt{c+d} \sqrt{a+b \sec (e+f x)}}{\sqrt{a+b} \sqrt{c+d \sec (e+f x)}}\right )|\frac{(a+b) (c-d)}{(a-b) (c+d)}\right ) \sqrt{\frac{(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt{-\frac{(b c-a d) (1+\sec (e+f x))}{(a-b) (c+d \sec (e+f x))}} (c+d \sec (e+f x))}{b \sqrt{c+d} (b c-a d) f}\\ \end{align*}

Mathematica [C]  time = 32.3777, size = 39039, normalized size = 98.58 \[ \text{Result too large to show} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sec[e + f*x]^2/(Sqrt[a + b*Sec[e + f*x]]*Sqrt[c + d*Sec[e + f*x]]),x]

[Out]

Result too large to show

________________________________________________________________________________________

Maple [A]  time = 0.411, size = 291, normalized size = 0.7 \begin{align*} -2\,{\frac{\cos \left ( fx+e \right ) \left ( \sin \left ( fx+e \right ) \right ) ^{2}}{f \left ( -1+\cos \left ( fx+e \right ) \right ) \left ( d+c\cos \left ( fx+e \right ) \right ) \left ( a\cos \left ( fx+e \right ) +b \right ) } \left ({\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }\sqrt{{\frac{a-b}{a+b}}}},\sqrt{{\frac{ \left ( c-d \right ) \left ( a+b \right ) }{ \left ( a-b \right ) \left ( c+d \right ) }}} \right ) -2\,{\it EllipticPi} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }\sqrt{{\frac{a-b}{a+b}}}},{\frac{a+b}{a-b}},{\sqrt{{\frac{c-d}{c+d}}}{\frac{1}{\sqrt{{\frac{a-b}{a+b}}}}}} \right ) \right ) \sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{\cos \left ( fx+e \right ) }}}\sqrt{{\frac{d+c\cos \left ( fx+e \right ) }{\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{ \left ( a+b \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}}\sqrt{{\frac{d+c\cos \left ( fx+e \right ) }{ \left ( c+d \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}}{\frac{1}{\sqrt{{\frac{a-b}{a+b}}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(f*x+e)^2/(a+b*sec(f*x+e))^(1/2)/(c+d*sec(f*x+e))^(1/2),x)

[Out]

-2/f/((a-b)/(a+b))^(1/2)*(EllipticF((-1+cos(f*x+e))*((a-b)/(a+b))^(1/2)/sin(f*x+e),((a+b)*(c-d)/(a-b)/(c+d))^(
1/2))-2*EllipticPi((-1+cos(f*x+e))*((a-b)/(a+b))^(1/2)/sin(f*x+e),(a+b)/(a-b),((c-d)/(c+d))^(1/2)/((a-b)/(a+b)
)^(1/2)))*cos(f*x+e)*sin(f*x+e)^2*(1/cos(f*x+e)*(a*cos(f*x+e)+b))^(1/2)*((d+c*cos(f*x+e))/cos(f*x+e))^(1/2)*(1
/(a+b)*(a*cos(f*x+e)+b)/(1+cos(f*x+e)))^(1/2)*(1/(c+d)*(d+c*cos(f*x+e))/(1+cos(f*x+e)))^(1/2)/(-1+cos(f*x+e))/
(d+c*cos(f*x+e))/(a*cos(f*x+e)+b)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (f x + e\right )^{2}}{\sqrt{b \sec \left (f x + e\right ) + a} \sqrt{d \sec \left (f x + e\right ) + c}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)^2/(a+b*sec(f*x+e))^(1/2)/(c+d*sec(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate(sec(f*x + e)^2/(sqrt(b*sec(f*x + e) + a)*sqrt(d*sec(f*x + e) + c)), x)

________________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)^2/(a+b*sec(f*x+e))^(1/2)/(c+d*sec(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{2}{\left (e + f x \right )}}{\sqrt{a + b \sec{\left (e + f x \right )}} \sqrt{c + d \sec{\left (e + f x \right )}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)**2/(a+b*sec(f*x+e))**(1/2)/(c+d*sec(f*x+e))**(1/2),x)

[Out]

Integral(sec(e + f*x)**2/(sqrt(a + b*sec(e + f*x))*sqrt(c + d*sec(e + f*x))), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (f x + e\right )^{2}}{\sqrt{b \sec \left (f x + e\right ) + a} \sqrt{d \sec \left (f x + e\right ) + c}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)^2/(a+b*sec(f*x+e))^(1/2)/(c+d*sec(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate(sec(f*x + e)^2/(sqrt(b*sec(f*x + e) + a)*sqrt(d*sec(f*x + e) + c)), x)